package edu.sju.chenshu.system.domain.question.dto;

import jakarta.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QuestionAddDTO {
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotNull(message = "难度不能为空")
    @Min(value = 1, message = "难度最小为1")
    @Max(value = 3, message = "难度最大为3")
    private Integer difficulty;
    @NotNull(message = "时间复杂度不能为空")
    @Positive(message = "必须为正数")
    private Long timeLimit;
    @NotNull(message = "空间复杂度不能为空")
    @Positive(message = "必须为正数")
    private Long spaceLimit;
    @NotBlank(message = "题目内容不能为空")
    private String content;
    @NotBlank(message = "题目用例不能为空")
    private String questionCase;
    @NotBlank(message = "题目默认代码块不能为空")
    private String defaultCode;
    @NotBlank(message = "题目main函数不能为空")
    private String mainFuc;
}
